ChartElement
StockSharp.Xaml.Charting
描述图表元素的基类(指向,蜡烛等).
继承自: ChartPart<T>
实现: IChartElementEx, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IPersistable
属性
ChartArea
public IChartArea ChartArea { get; private set; }
value = chartElement.ChartArea
chartElement.ChartArea = value
图表区域.
ChildElements
public IEnumerable<IChartElement> ChildElements { get; }
value = chartElement.ChildElements
儿童图表元素。
Colorer
public Func<IComparable, Color?> Colorer { get; set; }
value = chartElement.Colorer
chartElement.Colorer = value
自定义元素颜色器 。
FullTitle
public string FullTitle { get; set; }
value = chartElement.FullTitle
chartElement.FullTitle = value
完整系列标题。 如果此属性未定义, 则将使用自动生成的标题 。
IsLegend
public bool IsLegend { get; set; }
value = chartElement.IsLegend
chartElement.IsLegend = value
如果在图例中显示此元素 。
IsVisible
public bool IsVisible { get; set; }
value = chartElement.IsVisible
chartElement.IsVisible = value
显示/隐藏注释.
XAxisId
public string XAxisId { get; set; }
value = chartElement.XAxisId
chartElement.XAxisId = value
X轴.
YAxisId
public string YAxisId { get; set; }
value = chartElement.YAxisId
chartElement.YAxisId = value
Y轴.
方法
AddChildElement
protected internal void AddChildElement(IChartElement element, bool dontDraw)
chartElement.AddChildElement(element, dontDraw)
添加子图表元素 。
- element
- dontDraw
- 不创建相应的图表元素。 用于嵌入式元素 。
CheckAxesCompatible
public virtual bool CheckAxesCompatible(ChartAxisType? xType, ChartAxisType? yType)
result = chartElement.CheckAxesCompatible(xType, yType)
检查元素是否可用所提供轴类型绘制 。
- xType
- X轴类型。
- yType
- Y轴类型.
返回值: 如果支持所提供类型。
Clone
public sealed override T Clone()
result = chartElement.Clone()
Create a copy of ChartElement.
返回值: 收到了,我们得去查查
CopyTo
internal override T CopyTo(T elem)
result = chartElement.CopyTo(elem)
复制消息到 。
- elem
- Copy.
返回值: Copy.
CreateClone
protected virtual T CreateClone()
result = chartElement.CreateClone()
创建克隆, 但不能填写字段/ 属性 。
GetGeneratedTitle
protected virtual string GetGeneratedTitle()
result = chartElement.GetGeneratedTitle()
获得生成的标题 。
返回值: 自动生成图表元素标题 。
Load
public override void Load(SettingsStorage storage)
chartElement.Load(storage)
装入设置 。
- storage
- 设置存储 。
OnDraw
protected abstract bool OnDraw(ChartDrawData data)
result = chartElement.OnDraw(data)
绘制根元素 。
- data
- 图表绘图数据。
返回值: 如果数据已成功绘制,否则返回。
RemoveChildElement
protected internal void RemoveChildElement(IChartElement element)
chartElement.RemoveChildElement(element)
删除子图元素 。
Save
public override void Save(SettingsStorage storage)
chartElement.Save(storage)
保存设置 。
- storage
- 设置存储 。